// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_REP_PRODUCT_TECHINIC
// * CreateDate    : 2014-06-05 18:30:33
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:33
// * LastChanger   : 2014-06-05 18:30:33
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class RepProductTechinicEntity : EntityBase
    {
        public RepProductTechinicTable TableSchema
        {
            get
            {
                return RepProductTechinicTable.Current;
            }
		}
		
		public RepProductTechinicEntity()
        {

        }
		
		public RepProductTechinicEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.RepProductTechnicId = Convert.ToString(CommonFunctions.ToObject(dr["REP_PRODUCT_TECHNIC_ID"]));
			this.RepOrderItemId = Convert.ToString(CommonFunctions.ToObject(dr["REP_ORDER_ITEM_ID"]));
			this.TechnicId = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_ID"]));
			this.Sequence = Convert.ToInt32(CommonFunctions.ToObject(dr["SEQUENCE"]));
			this.WorkingGroup = Convert.ToString(CommonFunctions.ToObject(dr["WORKING_GROUP"]));
			this.WorkingPerson = Convert.ToString(CommonFunctions.ToObject(dr["WORKING_PERSON"]));
			this.RequiredFinishedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["REQUIRED_FINISHED_DATE"]));
        }
		
		public RepProductTechinicEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.RepProductTechnicId = Convert.ToString(CommonFunctions.ToObject(dr["REP_PRODUCT_TECHNIC_ID"]));
			this.RepOrderItemId = Convert.ToString(CommonFunctions.ToObject(dr["REP_ORDER_ITEM_ID"]));
			this.TechnicId = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_ID"]));
			this.Sequence = Convert.ToInt32(CommonFunctions.ToObject(dr["SEQUENCE"]));
			this.WorkingGroup = Convert.ToString(CommonFunctions.ToObject(dr["WORKING_GROUP"]));
			this.WorkingPerson = Convert.ToString(CommonFunctions.ToObject(dr["WORKING_PERSON"]));
			this.RequiredFinishedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["REQUIRED_FINISHED_DATE"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return RepProductTechinicTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string RepProductTechnicId
        {
            get { return Convert.ToString(GetData(RepProductTechinicTable.C_REP_PRODUCT_TECHNIC_ID)); }
            set { SetData(RepProductTechinicTable.C_REP_PRODUCT_TECHNIC_ID, value); }
        }
		
        [DataMember]
        public string RepOrderItemId
        {
            get { return Convert.ToString(GetData(RepProductTechinicTable.C_REP_ORDER_ITEM_ID)); }
            set { SetData(RepProductTechinicTable.C_REP_ORDER_ITEM_ID, value); }
        }
		
        [DataMember]
        public string TechnicId
        {
            get { return Convert.ToString(GetData(RepProductTechinicTable.C_TECHNIC_ID)); }
            set { SetData(RepProductTechinicTable.C_TECHNIC_ID, value); }
        }
		
        [DataMember]
        public int Sequence
        {
            get { return Convert.ToInt32(GetData(RepProductTechinicTable.C_SEQUENCE)); }
            set { SetData(RepProductTechinicTable.C_SEQUENCE, value); }
        }
		
        [DataMember]
        public string WorkingGroup
        {
            get { return Convert.ToString(GetData(RepProductTechinicTable.C_WORKING_GROUP)); }
            set { SetData(RepProductTechinicTable.C_WORKING_GROUP, value); }
        }
		
        [DataMember]
        public string WorkingPerson
        {
            get { return Convert.ToString(GetData(RepProductTechinicTable.C_WORKING_PERSON)); }
            set { SetData(RepProductTechinicTable.C_WORKING_PERSON, value); }
        }
		
        [DataMember]
        public DateTime RequiredFinishedDate
        {
            get { return Convert.ToDateTime(GetData(RepProductTechinicTable.C_REQUIRED_FINISHED_DATE)); }
            set { SetData(RepProductTechinicTable.C_REQUIRED_FINISHED_DATE, value); }
        }
		
		#endregion
	}
	
	
}	

